//Testing Smithy

#include "dominion.h"
#include "dominion_helpers.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int cardtest4(){
	int i;
	int seed = 1000;
	int numPlayer = 2;
	int testhand_count1, testhand_count2;
	int testactions1, testactions2;
	int handPos, choice1, choice2, choice3;
	int bonus;
	int k[10] = {smithy, council_room, feast, gardens, mine, remodel, village, adventurer, baron, great_hall};
	struct gameState G;
	int maxHandCount = 5;

	memset(&G, 0, sizeof(struct gameState));
	initializeGame(numPlayer, k, seed, &G);

	printf("whose turn %i\n", whoseTurn(&G));
	G.handCount[0] = 9;
	testhand_count1 = numHandCards(&G);
	testactions1 = G.numActions;

	//testvilliagecardplay(1, 1, &G);
	handPos = 1;

	cardEffect(k[0], choice1, choice2, choice3, &G, handPos, &bonus);

	testhand_count2 = numHandCards(&G);
	testactions2 = G.numActions;
	printf("Expected number is %i, Actual number is %i\n", testhand_count1+2, testhand_count2);
	if(testhand_count1 + 2 == testhand_count2)
		printf("passed draw card test\n");
	else
		printf("failed draw card test\n");

	return 0;
}
